GtkWindow: Don't double free export user data
authorJonas Ådahl <jadahl@gmail.com>
Tue, 9 May 2017 15:07:02 +0000 (23:07 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 9 May 2017 15:23:11 +0000 (23:23 +0800)
commit477556aac21c2e7b96554838849b68fcb6a84ec7
tree86367564bd9b5ec56aee9d5b027d2aa880c84c61
parent28d8fdca0227efd81febcda0701fb1b214785160
GtkWindow: Don't double free export user data

The user data passed when exporting a Wayland window was supposed to be
freed using the destroy_func, as is commonly done. This was previously
broken, as the user data was just NULL:ed when exported, and only
actually destroyed when unexporting before having exported.

While e016d9a5dba6f6f99aee94d0b72c00bee299b96a fixed this, it introduced
a regression, as GtkWindow was nice enough to free the memory anyway
after having received the exported handle, causing it now to double
free.

https://bugzilla.gnome.org/show_bug.cgi?id=782109
gtk/gtkwindow.c